<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改密码</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>首页</title>
    <link href="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<%--  引入导航条 --%>
<jsp:include page="common/nav.jsp"/>

<div class="row">
    <div class="col-lg-offset-4 col-lg-4">
        <form class="form-horizontal" action="${pageContext.request.contextPath}/changPassword">
            <div class="form-group">
                <label for="oldpassword" class="col-sm-2 control-label">旧密码:</label>
                <div class="col-sm-10">
                    <input type="hidden" name="loginName" value="${current_user}">
                    <input type="text" class="form-control" id="oldpassword" name="oldpassword" placeholder="手机号或email">
                </div>
            </div>
            <div class="form-group">
                <label for="newpassword" class="col-sm-2 control-label">新密码:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="newpassword" name="newpassword" placeholder="至少6位">
                </div>
            </div>
            <div class="form-group">
                <p class="help-block" style="color: orangered;">${msg}</p>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                   <%-- <button type="submit" class="btn btn-info btn-sm"  id="btnBack">返回</button>--%>
                    <button type="submit" class="btn  btn-success">提交</button>
                </div>
            </div>


        </form>
    </div>
</div>
</body>
<%--<script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>--%>
<script>
    $(function () {
        $("#btnBack").click(function () {

        });
    });
</script>
</html>
